﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="NoPermission.aspx.cs" Inherits="Login_NoPermission" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>权限检查</title>
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <link href='<%= Telerik.Web.SkinRegistrar.GetWebResourceUrl(this, typeof(RadEditor), "Telerik.Web.UI.Skins.Editor.css") %>'
            rel="stylesheet" type="text/css" />
        <link href='<%= Telerik.Web.SkinRegistrar.GetWebResourceUrl(this, typeof(Telerik.Web.UI.RadEditor), "Telerik.Web.UI.Skins.Outlook.Editor.Outlook.css") %>'
            rel="stylesheet" type="text/css" />
        <link href='<%= Telerik.Web.SkinRegistrar.GetWebResourceUrl(this, typeof(RadWindow), "Telerik.Web.UI.Skins.Window.css") %>'
            rel="stylesheet" type="text/css" />
        <link href='<%= Telerik.Web.SkinRegistrar.GetWebResourceUrl(this, typeof(Telerik.Web.UI.RadWindow), "Telerik.Web.UI.Skins.Outlook.Window.Outlook.css") %>'
            rel="stylesheet" type="text/css" />
    </telerik:RadCodeBlock>
    <style type="text/css">
        form, body, html
        {
            padding: 0;
            margin: 0;
            overflow: hidden;
            background-color: white;
            font: normal 13px "Segoe UI" , Arial, Verdana;
            color: black;
        }
        
        .reply_box
        {
            border: solid 1px #666;
        }
        
        .reply_box[disabled]
        {
            border: 0;
            background-color: white;
        }
        
        .mailBtn
        {
            padding: 0;
            margin: 4px 0 0 0;
            list-style: none;
            float: right;
        }
        
        .mailBtn li
        {
            float: left;
        }
        
        .mailBtn li a
        {
            display: block;
            border: solid 1px black;
            background: maroon;
            width: 100px;
            line-height: 22px;
            color: white;
            text-decoration: none;
            font-weight: bold;
            font-size: 11px;
            margin: 0 0 0 2px;
        }
        
        .mailBtn li a:hover
        {
            text-decoration: underline;
        }
    </style>
</head>
<body>
    <script type="text/javascript">
        function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog 
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz as well) 

            return oWindow;
        }
        function CloseWnd() {
            GetRadWindow().close();
            window.open('login.aspx', '', '');
        }
    </script>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadSkinManager ID="RadSkinManager" runat="server" Skin="Outlook">
    </telerik:RadSkinManager>
    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" />

    <telerik:RadAjaxPanel OnAjaxRequest="Button1_Click" ID="RadAjaxPanel1" runat="server"
        LoadingPanelID="RadLoadingPanel1">
        <asp:Label ID="Label1" runat="server" Text="您没有登录或者是权限不够"></asp:Label>
        <div style="text-align: right; margin-top: 8px;">
            <asp:Button ID="Button1" runat="server" Text="登录" OnClientClick="CloseWnd()" OnClick="Button1_Click" />
            <asp:Button ID="Button2" runat="server" Text="关闭" 
                OnClientClick="CloseWnd();return false;" onclick="Button2_Click" />
            
        </div>
    </telerik:RadAjaxPanel>
    <telerik:RadAjaxLoadingPanel ID="RadLoadingPanel1" runat="server">
    </telerik:RadAjaxLoadingPanel>
    </form>
</body>
</html>